﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace CapaDatos
{   

    public class Conexion
    {
        #region singleton
            private static readonly Conexion _instancia = new Conexion();
            //private Conexion(){}
            public static Conexion Instancia {
                get { return Conexion._instancia; }
            }
        #endregion

        #region metodos
            public SqlConnection Conectar() {
                SqlConnection cn = new SqlConnection();
                cn.ConnectionString =
                    "Data Source=.;Initial Catalog=BDArticulos;User ID=sa;Password=12345678";
                return cn;
            }
        #endregion
        
    }
}
